package tinybase.basic;

public class RedBase {
	public static final int START_PF_ERR = -1;
	public static final int END_PF_ERR = -100;
	public static final int START_RM_ERR = -101;
	public static final int END_RM_ERR = -200;
	public static final int START_IX_ERR = -201;
	public static final int END_IX_ERR = -300;
	public static final int START_SM_ERR = -301;
	public static final int END_SM_ERR = -400;
	public static final int START_QL_ERR = -401;
	public static final int END_QL_ERR = -500;

	public static final int START_PF_WARN = 1;
	public static final int END_PF_WARN = 100;
	public static final int START_RM_WARN = 101;
	public static final int END_RM_WARN = 200;
	public static final int START_IX_WARN = 201;
	public static final int END_IX_WARN = 300;
	public static final int START_SM_WARN = 301;
	public static final int END_SM_WARN = 400;
	public static final int START_QL_WARN = 400;
	public static final int END_QL_WARN = 500;

	public static final int MAXSTRINGLEN = 255;
	// zliu
	public static final int MAXNAME = 24;
	public static final int MAXATTRS = 40;

	// ALL_PAGES is defined and used by the ForcePages method defined in RM
	// and PF layers
	public static final int ALL_PAGES = -1;

	public static final int RAND_MAX = 32767;

	public enum AttrType {
		INT(0), FLOAT(1), STRING(2);

		private Integer value;

		private AttrType(int value) {
			this.value = value;
		}

		public void setValue(int value) {
			this.value = value;
		}

		public Integer getValue() {
			return value;
		}
	}

	public enum CompOp {
		NO_OP, EQ_OP, NE_OP, LT_OP, GT_OP, LE_OP, GE_OP;
	}

	public enum ClientHint {
		NO_HINT, REVERSE_HINT;
	}
}
